<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<head>
<link rel="stylesheet" type="text/css"
	href="resources/cssStyle/login.css" />
<link rel="stylesheet" type="text/css"
	href="resources/cssStyle/shadow.css" />
<title><ui:insert name="title">Default title</ui:insert></title>
</head>

<body>

	<f:event listener="#{security.checkSimpleUserCredentials}" type="preRenderView" />

	<f:loadBundle basename="properties.messages" var="msg" />
	<div class="shadow">

		<div class="selectRepository">
			<br />
			<h1 class="shadowTitle">#{msg.selectYourRepository}</h1>
			<br /> <br />
			<h:form>
				<h:selectOneMenu id="oneMenu"
					value="#{myLoginController.rDTOString}" onchange="submit()"
					valueChangeListener="#{myLoginController.getCurrentResourceChanged}">
					<f:selectItems value="#{myLoginController.reposString}"
						var="repository" />
					<f:ajax event="blur" render="oneMenu"></f:ajax>
				</h:selectOneMenu>
			</h:form>
			<br />
			<br />
			<h:form>
				<h:commandButton class="selectRepositoryButton" value="Ok"
					action="#{myLoginController.selectRepository}" />
				<h:commandButton class="selectRepositoryButton" value="#{msg.cancel}"
					action="#{myLoginController.selectRepositoryCancel}" />

			</h:form>
		</div>

	</div>
	<div class="login">
		<div id="header">
			<ui:insert name="header">
				<ui:include src="header.xhtml" />
			</ui:insert>
		</div>

		<div id="content">
			<ui:insert name="content">
			</ui:insert>
		</div>

		<div id="footer">
			<ui:insert name="footer">
				<ui:include src="footer.xhtml" />
			</ui:insert>
		</div>
	</div>

</body>

</html>